package cn.edu.scau.cmi.tangqingning.hibernate;

/**
 * Student entity. @author MyEclipse Persistence Tools
 */
public class Student extends AbstractStudent implements java.io.Serializable {

	// Constructors

	/** default constructor */
	public Student() {
	}

	/** minimal constructor */
	public Student(String name) {
		super(name);
	}

	/** full constructor */
	public Student(Teacher teacher, String name, Integer id) {
		super(teacher, name, id);
	}

	@Override
	public String toString(){
		return getId() + " " + getName();
	}
}
